<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/14
 * Time: 10:47
 * 添加会员问题
 */

//获取参数
$omq_title           = $route->bodyParams['omq_title'];      //问题的标题
$omq_type            = $route->bodyParams['omq_type'];       //问题的类型0-运营管理问题 1-团队与绩效问题 2-日常经营问题 3-营销招生问题
$omq_content         = $route->bodyParams['omq_content'];    //问题的详情
$omq_uid             = $route->bodyParams['omq_uid'];        //提问人的id
$omq_oesid           = $route->bodyParams['omq_oesid'];      //机构id
$omq_create_time     = time();                                 //提问时间

//写入数组
$insertArr = [
    'omq_title'             => $omq_title,
    'omq_type'              => $omq_type,
    'omq_content'          => $omq_content,
    'omq_uid'              => $omq_uid,
    'omq_oesid'            => $omq_oesid,
    'omq_create_time'     => $omq_create_time
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_member_question",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );